$(".submit_leave").click(e => {
  const leave = $(".leave_text").val();
  if (leave) {
    $.get("/submit_leave",{leave}, e => {
      // $(".leave_content").html("");
      let leaveMsg = e.msg;
        $(".leave_content").prepend($(`
        <p style="padding-left:5px"><span>${leaveMsg.auther}</span>：${leaveMsg.msg}   -- ${leaveMsg.createData}</p>`));
      $(".close_btn").click();
      // $("button[data-dismiss=modal]").click();
    })
  }else {
    alert("留言不能为空！")
  }
})
